<?php
	ob_start();
	 session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="SHORTCUT ICON" href="img/lp3i.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test Potensi Minat Bakat</title>
<link rel="stylesheet" type="text/css" href="css/accordion_glam.css" />
<Script type="text/javascript">
window.history.forward(1);
function check_input() {
  with ( document.forms.input ) {
    valid1 = new Array();
    // valid1ation code soal 1
	checked = false;
    for ( i = 0; !checked && ( i < document.forms["input"]["gen1"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen1"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 1 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen2"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen2"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 2 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen3"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen3"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 3 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen4"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen4"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 4 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen5"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen5"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 5 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen6"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen6"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 6 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen7"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen7"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 7 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen8"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen8"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 8 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen9"].length ); i++ ) {
      checked = checked || ( document.forms["input"]["gen9"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 9 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen10"].length ); i++ ) {
    checked = checked || ( document.forms["input"]["gen10"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 10 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen11"].length ); i++ ) {
    checked = checked || ( document.forms["input"]["gen11"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 11 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen12"].length ); i++ ) {
    checked = checked || ( document.forms["input"]["gen12"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 12 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen13"].length ); i++ ) {
    checked = checked || ( document.forms["input"]["gen13"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 13 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen14"].length ); i++ ) {
    checked = checked || ( document.forms["input"]["gen14"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 14 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	for ( i = 0; !checked && ( i < document.forms["input"]["gen15"].length ); i++ ) {
    checked = checked || ( document.forms["input"]["gen15"][ i ].checked == true );
    }
	valid1[ valid1.length ] = checked ? "true" : "Jawaban Pertanyaan 15 Belum dipilih ? Pililah A, B, C atau D";
	checked = false;
	// alert results
    _clonefish_message = '';
    for ( i in valid1 )
      if ( ( valid1[ i ] != 'true' )  )
        _clonefish_message += "-" + valid1[ i ] + "\n";

    if ( _clonefish_message.length) {
      alert( "Tolong betulkan kesalahan dibawah ini: \n" + _clonefish_message );
      return false;
    }
    else
      return true;
  }
}

</Script>
</head>

<body>
<?php

	require ("cek_session.php"); 
	require ("main_function.php"); 
	require ("header.php");
?> 
<div id="main">
<!-- header ends -->
<!-- content begins -->
<div id="content_bg">
<div id="maintop">
<?php 
	//require ("right.php");
?> 
<form enctype="multipart/form-data" name="input" action="jwbn1.php" onsubmit="return check_input();" method="POST">
<div id="test-accordion" class="accordion">
	<div class="accordion-toggle">Petunjuk</div>
	<div class="accordion-content">
		<p>
			<h4>Selamat datang <font color="#FF0000"><B><?php echo $_SESSION["nm"] ?></B></font> USER ID anda adalah <font color="#FF0000"><blink><B><?php echo $_SESSION["uid"] ?></B></blink></font> <br />
			Catatlah User ID anda Untuk mengetahui hasil dari tes ini.<br />
			Saya akan berikan penjelasan singkat :<br />
			Setelah anda menyelesaikan tes potensi karakter maka saatnya untuk tes potensi minat bakat<br />
			Disini Tugas anda adalah, pilihlah salah satu dari 4 kegiatan dibawah ini yang paling mengambarkan diri anda.!<br />
			Tidak ada jawaban yang salah, maka pilihlah yang sesuai dengan diri anda!
			</h4>
		</p> 
	</div>
	<div class="accordion-toggle">Soal 1</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=1";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p> 
	</div>

	<div class="accordion-toggle">Soal 2</div>
		<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=2";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
		</div>
	<div class="accordion-toggle">Soal 3</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=3";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>
	<div class="accordion-toggle">Soal 4</div>
		<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=4";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
		</div>
	<div class="accordion-toggle">Soal 5</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=5";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>

	<div class="accordion-toggle">Soal 6</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=6";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>

	<div class="accordion-toggle">Soal 7</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=7";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>

	<div class="accordion-toggle">Soal 8</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=8";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>

	<div class="accordion-toggle">Soal 9</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=9";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>
	<div class="accordion-toggle">Soal 10</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=10";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>
	<div class="accordion-toggle">Soal 11</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=11";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>
	<div class="accordion-toggle">Soal 12</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=12";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>
	<div class="accordion-toggle">Soal 13</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=13";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>
	<div class="accordion-toggle">Soal 14</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=14";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>
	<div class="accordion-toggle">Soal 15</div>
	<div class="accordion-content">
		<p>
			<?php
				$find_data="select * from ts_bakat where no=15";
				$query_fd=mysql_query($find_data, $konk);
				$result_fd=mysql_num_rows($query_fd);
				if ($result_fd > 0)
				{
					for ($a=0; $a<$result_fd; $a++)
					{
						$field_fd1=mysql_fetch_assoc($query_fd);
			?>
			<table width="100%"  border="0">
			  <tr>
                <td align="left" valign="middle">
				<input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="A"><? echo $field_fd1["pil1"]; ?></td>
			  </tr>
			  <tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="B"><? echo $field_fd1["pil2"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="C"><? echo $field_fd1["pil3"]; ?></td>
			  </tr>
                <td><input type="radio" name="<? echo "gen".$field_fd1["no"]; ?>" value="D"><? echo $field_fd1["pil4"]; ?></td>
			  </tr>
			 </table>
			 <?php
			 		}
			 	}elseif (mysql_num_rows($query_fd)==0)
				{
					echo "Data yang dicari tidak ditemukan, silahkan ulang kembali&nbsp;&nbsp;";
				}

			 ?>
		</p>
	</div>
		<div id="jwb">
			<input type="submit" class="button" value="Lanjut">
		</div>
</div>
		</form>
    </div><div id="mainbot"></div>
</div>
</div>
</div>
<?php 
	require ("footer.php");
?>
</body>
</html>
<?php
	ob_end_flush();
?>